package com.yc.psychologicalconsultant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.psychologicalconsultant.pojo.Result;
import com.yc.psychologicalconsultant.vo.*;
import com.yc.psychologicalconsultant.pojo.User;

public interface UserService extends IService<User> {

    public Result loginByUsername(LoginUserNameVO loginUserNameVO);

    public Result loginByEmail(LoginEmailVO loginEmailVO);

    public Result registerByEmail(UserRegisterByEmailVO userRegisterByEmailVO);

    public Result loginOrRegisterByPhone(LoginPhoneVO userPhoneVO);

    public Result getEmailCode(VerificationEmailVO verificationEmailVO) throws Exception;

    public Result getPhoneCode(String phone);

    public Result updateAvatar(String userId,String url);

    public Result searchUser(String username);
}
